package edu.calvin.djs32.cs214.interpreters.calculator.primitives;

import edu.calvin.cs214.hobbes2008.HobbesTIR;
import edu.calvin.cs214.hobbes2008.IntegerTIR;
import edu.calvin.djs32.cs214.interpreters.calculator.Primitive;

public class SquarePrimitive implements Primitive {

	public HobbesTIR apply(HobbesTIR... tir) {
		IntegerTIR arg0 = (IntegerTIR) tir[0];
		return new IntegerTIR(arg0.getInt()*arg0.getInt());
	}

}
